<?php

/**
 * GcDisciplina form.
 *
 * @package    GC
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class GcDisciplinaForm extends BaseGcDisciplinaForm {

    public function configure() {
        unset($this['created_at'], $this['updated_at']);

        $this->widgetSchema['gc_professores_list'] = new sfWidgetFormDoctrineChoice(array(
                    'label' => 'Professores Que Ensinam',
                    'model' => 'GcProfessores',
                    'order_by' => array('nome', 'asc'),
                    'expanded' => true,
                    'multiple' => true,
                ));

        $this->validatorSchema['gc_professores_list'] = new sfValidatorDoctrineChoice(array('model' => 'GcProfessores', 'column' => 'id', 'multiple' => true));

        $this->widgetSchema['gc_turma_list'] = new sfWidgetFormDoctrineChoice(array(
                    'label' => 'Turmas',
                    'model' => 'GcTurma',
                    'order_by' => array('numero', 'asc'),
                    'expanded' => true,
                    'multiple' => true,
                ));

        $this->validatorSchema['gc_turma_list'] = new sfValidatorDoctrineChoice(array('model' => 'GcTurma', 'column' => 'id', 'multiple' => true));
    }

}
